#pragma once
#include "USocket.h"

enum Cmd : uint8_t
{
	Default,
	Start,
	Pause,
	Resume,
	Stop,
	SetFileName
};

class UdpIPC
{
public:

	void Init( int port);
	void SetStatePt(bool* pausePtr, bool* runningPtr)
	{
		this->pausePtr = pausePtr;
		this->runningPtr = runningPtr;
	}
	void OnRecvMessage(uint8_t* data, int size);
	void SendData(std::vector<char> recvData);
	void Close();
	UServerSocket udp;
	bool* pausePtr;
	bool* runningPtr;
};